﻿using System;

namespace Eneta.Portal.Forum.Rss
{
    [Serializable]
    public class RssDefault
    {
        // Fields
        public static readonly DateTime DateTime = DateTime.MinValue;
        public const int Int = -1;
        public const string String = "";
        public static readonly Uri Uri = new Uri("gopher://rss-net.sf.net");

        // Methods
        public static int Check(int input)
        {
            if (input >= -1)
            {
                return input;
            }
            return -1;
        }

        public static string Check(string input)
        {
            if (input != null)
            {
                return input;
            }
            return "";
        }

        public static Uri Check(Uri input)
        {
            if (input != null)
            {
                return input;
            }
            return Uri;
        }
    }
}
